package com.example.cookie02;

import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author ：lqs
 * @date ：Created in 2023/8/30 16:39
 * @description：
 * @modified By：
 * @version:
 */
public class test {
    public static void main(String[] args) {
        LocalDateTime currentDateTime = LocalDateTime.now();
        Date date = new Date();
        System.out.println(date);

        long l = System.currentTimeMillis();
        Date now2= new Date(l);
        System.out.println(now2.toString());
        System.out.println("```````");

        Date now = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String formatNow = sdf.format(now);
        System.out.println(formatNow);
        System.out.println("lqs修改");
        System.out.println("zzk修改");
        System.out.println("lqs修改");


    }
}

